package com.qzw.service;

import com.qzw.dao.OrderDao;
import com.qzw.dao.OrderDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class OrderService {

    @Value("JD87624908638923")
    private  String orderNo;

    @Value("小米, 华为, 三星, 苹果")
    private String[] orderPro;

    public String[] getOrderPro() {
        return orderPro;
    }

    @Autowired
    private OrderDao orderDao;

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public void setOrderPro(String[] orderPro) {
        this.orderPro = orderPro;
    }

    public void addOrder(){
        System.out.println("订单业务曾添加订单的方法");
    }
}
